package cn.edu.imau.zy.system.feign;

import cn.edu.imau.zy.common.constant.ServiceNameConstants;
import cn.edu.imau.zy.common.core.domain.R;
import cn.edu.imau.zy.common.core.entity.student.StLeave;
import cn.edu.imau.zy.common.core.entity.student.StStudent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 学生请假 Feign服务层
 */
@FeignClient(name = ServiceNameConstants.STUDENT_SERVICE)
public interface RemoteStudentLeaveService {
    @PostMapping("leave/update")
    R editSave(StLeave stLeave);

    @GetMapping("leave/get/{id}")
    StLeave getById(@PathVariable("id") String id);
}
